<template>
  <div>
    <h1>Father</h1>
    <h2>count: {{ count }}</h2>
    <!-- 使用 -->
    <Emit @add-count="count++" />
  </div>
</template>

<script>
import Emit from '../../components/Emit'
export default {
  data() {
    return {
      count: 0,
    }
  },
  components: {
    Emit,
  },
}
</script>

<style></style>
